From: Christian Kellner Date: Thu, 19 Apr 2018 12:13:20 +0000 (+0200) Subject: thunderbolt: fix enroll-failed signal args order X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~5^2~88 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0963ccddba8050f4caa6dcb967ff4884d54c702b;p=gnome-shell.git thunderbolt: fix enroll-failed signal args order The devices emitted (device, error) while the connected handler was expecting (error, device). The former is more consistent with the rest of the code (so change it to device, error). --- diff --git a/js/ui/status/thunderbolt.js b/js/ui/status/thunderbolt.js index 6f563c1e0..ebd1c3eb1 100644 --- a/js/ui/status/thunderbolt.js +++ b/js/ui/status/thunderbolt.js @@ -228,7 +228,7 @@ var AuthRobot = new Lang.Class({ _onEnrollDone(device, error) { if (error) - this.emit('enroll-failed', error, device); + this.emit('enroll-failed', device, error); /* TODO: scan the list of devices to be authorized for children * of this device and remove them (and their children and